<!--
 * @Author: your name
 * @Date: 2021-08-13 16:28:45
 * @LastEditTime: 2021-08-18 10:07:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \系统学习\VueProject\vue02\supermall\src\components\content\goods\GoodsList.vue
-->
<template>
   <div class="goods">
     <goods-list-item v-for="(item,index) in goods" :key="index" :goods-item="item" />
   </div>
</template>

<script>
import GoodsListItem from './GoodsListItem.vue'
export default {
    name:'GoodsList',
    props:{
        goods:{
            type:Array,
            default(){
                return []
            }
        }
    },
    components:{
        GoodsListItem
    }
}
</script>

<style>
    .goods {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;

    padding: 2px;
  }

</style>
